From c1fc99944b1b415548a7849d0a77051217a6e437 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 14 Apr 2004 17:09:18 +0000 Subject: [PATCH] Read enough of the navicache xml to generate useful cache pages with the HTML and TEXT outputs. --- navicache.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/navicache.c b/navicache.c index 1b9c6173a..7cece8654 100644 --- a/navicache.c +++ b/navicache.c @@ -179,7 +179,15 @@ nav_start(void *data, const char *el, const char **attr) } else if (0 == strcmp(ap[0], "cache_size")) { wpt_tmp->gc_data.container = nc_mkcont(ap[1]); - } + } else + if (0 == strcmp(ap[0], "description")) { + wpt_tmp->gc_data.desc_long.is_html = 1; + wpt_tmp->gc_data.desc_long.utfstring = xstrdup(ap[1]); + } else + if (0 == strcmp(ap[0], "comments")) { + wpt_tmp->gc_data.desc_short.is_html = 1; + wpt_tmp->gc_data.desc_short.utfstring = xstrdup(ap[1]); + } } waypt_add(wpt_tmp); } -- 2.30.2